package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.MyCommenBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.DEFAULT_ADDRESS)
public class ConnDefaultddress extends BaseAsyPost<MyCommenBean> {


    public String member_id;
    public int id, status;

    public ConnDefaultddress(String member_id, int status, int id, AsyCallBack<MyCommenBean> asyCallBack) {
        super(asyCallBack);
        this.member_id = member_id;
        this.status = status;
        this.id = id;
    }

    @Override
    protected MyCommenBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");

        TOAST = object.optString("message");

        Gson gson = new Gson();

        MyCommenBean loginBean = new MyCommenBean();

        loginBean = gson.fromJson(object.toString(), MyCommenBean.class);


        return loginBean;


    }
}



